home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
Alchemy
/
Script
/
Fiber.rx
< prev
next >
Wrap
Text File
|
2001-10-23
|
1KB
|
81 lines
/* Alchemy script
100
1
2
*/
options results
parse ARG Port x1 y1 x2 y2 type b
ADDRESS value Port
pp_GetPenType
PType=result
pp_ClosestColor 0 0 0
Black=result
pp_AvoidRefresh
pp_Progresstext 'Fiber'
pp_UpdateUndoBox x1-1 y1-1 x2+1 y2+1
pp_ComposeReqOff
pp_Compose 0 100 0
tot=3
pp_EffectOn
pp_Progress 1 tot
pp_Blur 5
pp_BoxF x1 y1 x2 y2
pp_Progress 2 tot
IF type=1 THEN DO
A=-2
C=-1
pp_ConvInit 1 1 0
pp_Conv 0 C C C C C
pp_Conv 1 C A A A C
pp_Conv 2 C A 33 A C
pp_Conv 3 C A A A C
pp_Conv 4 C C C C C
END
ELSE DO
C=-1
pp_ConvInit 0 1 0
pp_Conv 0 0 0 0 0 0
pp_Conv 1 0 C C C 0
pp_Conv 2 0 C 9 C 0
pp_Conv 3 0 C C C 0
pp_Conv 4 0 0 0 0 0
pp_BoxF x1 y1 x2 y2
C=-2
pp_ConvInit 0 4 0
pp_Conv 0 0 0 0 0 0
pp_Conv 1 0 0 C 0 0
pp_Conv 2 0 C 12 C 0
pp_Conv 3 0 0 C 0 0
pp_Conv 4 0 0 0 0 0
END
pp_BoxF x1 y1 x2 y2
pp_EffectOff
pp_SetApen Black
pp_PenType 0
pp_box x1 y1 x2 y2
IF type=1 then DO
pp_box x1+1 y1+1 x2-1 y2-1
END
pp_PenType PType
pp_Progress 3 tot
pp_ComposeReqOn
pp_PermitRefresh
pp_ProgressClr
Exit